﻿#ifndef U_QualityHistoryChart_H
#define U_QualityHistoryChart_H

#include "u_chart.h"
#include "u_chartview.h"
#include "Window/mywidget.h"

class QualityHistoryChart : public MyWidget
{
    Q_OBJECT
public:
    explicit QualityHistoryChart(QWidget *parent = nullptr);
    ~QualityHistoryChart();

signals:

public slots:
    void SetData(QList<Simulation> list);

private:

    void InitWidget();
    void SetupConnections();
    void Initialize();

    int         type;
    int         rangeMin;
    int         bandWidth;
    int         sampleSzie;

    Chart            *chart;

    QLineSeries      *series0;
    QLineSeries      *series1;
};

#endif // U_QualityHistoryChart_H
